package cn.tedu.shoot;
import java.awt.image.BufferedImage;
public class Bullet extends FlyingObject {		
		private int speed;
		public Bullet(int x,int y){
			super(19,46);
			this.x = x;
			this.y = y;
			speed = 4;		
		}
		public void step() {
			y-=speed;
		}
		int index =1;
		public BufferedImage getImage() {
			if(isLife()) {
				return Images.bullet;
			}else if(isDead()) {
				state = REMOVE;
			}
				return null;
		}
		public boolean outOfBouds() {//判断敌人是否越界
			return this.y<=-this.height;
		}
		
		
}
